package la.iok.hzsvn.lewin.movie.shopmovie.model;

import java.util.Objects;

public class ShopPlayerVo {
    /**
     * 玩家的用户id
     */
    private Long userId;
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 用户的昵称。可能为空
     */
    private String nickname;

    private int gender;

    public ShopPlayerVo() {
    }

    public ShopPlayerVo(Long userId, String phoneNumber, String nickname,int gender) {
        this.userId = userId;
        this.phoneNumber = phoneNumber;
        this.nickname = nickname;
        this.gender =gender;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ShopPlayerVo)) return false;
        ShopPlayerVo vo = (ShopPlayerVo) o;
        return Objects.equals(userId, vo.userId) && Objects.equals(phoneNumber, vo.phoneNumber) && Objects.equals(nickname, vo.nickname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, phoneNumber, nickname,gender);
    }


}
